import {http} from '../utils'

exports.getRecommend = function (type) {
  return http({
    type:'get',
    url:`/Featured/List?type=${type}`,
  })
}

exports.postRecommend = function (type, data) {
  return http({
    type:'post',
    url:`/Featured?type=${type}`,
    data: data
  })
}
exports.deleteRecommend = function (type, id) {
  return http({
    type:'delete',
    url:`/Featured?type=${type}&id=${id}`,
  })
}
